﻿using DevExpress.XtraReports.UI;
using EyFramework.Common;
using Ncov2019.Core.Service;
using Ncov2019.Entity.Dto;
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;

namespace Ncov2019.Report
{
    public partial class LabResultReport : DevExpress.XtraReports.UI.XtraReport
    {
        private INcovBarConfirmService ncovBarConfirmService;

        public LabResultReport()
        {
            InitializeComponent();
            ncovBarConfirmService = Globals.GetService<INcovBarConfirmService>();
        }

        public void QueryData(string bingrenid)
        {
            LisReportInfo lisReportInfo = ncovBarConfirmService.GetLisReport(bingrenid);
            bar_tmh.Text = lisReportInfo.TIAOMAHAO;
            xl_blh.Text = lisReportInfo.BINGRENID;
            xl_xm.Text = lisReportInfo.XINGMING;
            xl_xb.Text = lisReportInfo.XINGBIE;
            xl_nl.Text = lisReportInfo.NIANLING;
            xl_shz.Text = lisReportInfo.SHENHERXM;
            xl_jyz.Text = lisReportInfo.JIESHOURXM;
            xl_cjsj.Text = lisReportInfo.CAIJISJ;
            xl_jysj.Text = lisReportInfo.JIESHOUSJ;
            xl_bgsj.Text = lisReportInfo.SHENHESJ;
            xl_sjys.Text = lisReportInfo.KAIDANYSXM;
        }
    }
}